package com.zhuangjie.rider.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhuangjie
 * @since 2024-01-08
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("rider_settings")
@ApiModel(value = "RiderSettings对象", description = "")
public class RiderSettings implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("settings编号")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("骑手id")
    @TableField("rider_id")
    private Long riderId;

    @ApiModelProperty("是否系统自动派单 1开启，0关闭")
    @TableField("system_dispatch")
    private Short systemDispatch;

    @ApiModelProperty("单次最大接单数")
    @TableField("max_taking_order")
    private Integer maxTakingOrder;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
